package org.apache.dolphinscheduler.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;
import org.apache.dolphinscheduler.dao.entity.UserGroup;

import java.util.List;
import java.util.Map;

public interface UserGroupService extends IService<UserGroup> {

	Result queryAllGroupPaging(User loginUser, Integer pageNo, Integer pageSize, String searchVal);
	
	Map<String, Object> saveUserGroup(User loginUser, UserGroup userGroup);
	
	Map<String, Object> deleteUserGroupById(User loginUser, Integer id);

	List<Integer> queryAllUserByGroupAdmin(User loginUser);

	List<Integer> queryAllGroupByGroupAdmin(User loginUser);
}
